/**********************************************************************/
/**  Copyright (c) ECC labs. 2001-2002. All Rights Reserved.         **/
/**********************************************************************/
/*
		Code params calc ( small length )
		input n & k in command line
*/

#include "binadd.h"
// #include <stdlib.h>

void main(int argc, char* argv[])
{
int k=atoi(argv[2]), n=atoi(argv[1]) ;

CBinCode a(k, n) ;

cin >> a ;
cout << a ;	
	CBinCode b(a.k, a.n) ;
	b=a ;
	indep(a) ;
	CBinWord wt(a.n) ;
	a.k = a.step().wt() ;
	a.spec() ;
	for ( int i=0; i<=n; i++ )
	{
		if( a.A[i] != 0)
			cout << "A[" << i << "] = " << a.A[i] << "\t" ;
	}
	cout    << endl << a ;
	cerr    << "\nall :\t\t" << b.k
			<< "\nindepended :\t" << a.k
			<< "\na.d:\t\t" << a.d << endl;
}
